#pragma strict

public var tappo : float;
public var kesto : float;
var obj : GameObject;

function Start () {

}

function Update () {

//pomon luonti
if (kesto > 5){

	kesto=0;
	
	var clone=Instantiate(obj, transform.position, transform.rotation);
	Destroy (gameObject);
	}
	
if (tappo > 6){

	tappo=0;

}
	
	
	kesto+= Time.deltaTime;
	
	}

